package com.ciko.code.adapter;


import android.content.Context;

import com.ciko.code.base.adapter.CommonAdapter;
import com.ciko.code.base.adapter.ViewHolder;
import com.ciko.code.bean.ModuleContent;
import com.mywork.R;

import java.util.List;

/**
 * Created by 12154 on 2015/10/31.
 */
public class PublicityListAdater extends CommonAdapter<ModuleContent> {

    public PublicityListAdater(Context context, List<ModuleContent> mDatas, int itemLayoutId) {
        super(context, mDatas, itemLayoutId);
    }

    @Override
    public void convert(ViewHolder helper, ModuleContent item) {

        helper.setText(R.id.tv_titlePublicMsg , item.getTitle());
        helper.setText(R.id.tv_shortInfoPublicMsg, item.getShortIntro());

        helper.setImageUrl(R.id.iv_picPublicMsg, item.getCoverImg(),R.drawable.shape_rect_gray);

    }
}
